|
Book details / order |
LEARNING ANDROID CANVAS DEVELOP AND DEPLOY GRAPHICS-RICH ANDROID APPLICATION USING ANDROID CANVAS |
What you will learn from this book
create a drawable thread to take away the load from the main thread
develop important drawables and shapes
understand the actions performed by users, capturing them, and responding to them
unfold the basics of nested layouts
design your own view classes and use them in the main class
discover the graphics used as backgrounds of the whole screen or controls like buttons
draw on the android canvas and views
set up the listener for touch events
in detail
when you're writing an application in which you would like to perform specialized drawing and/or control the animation of graphics, you should do so by drawing through a canvas. a canvas works for you as an interface to the actual surface upon which your graphics will be drawn — it holds all of your "draw" calls. via the android canvas, your drawing is actually performed on an underlying bitmap, which is placed into the window.
learning android canvas is a practical guide, which will help you develop applications that contain rich 2d graphics like backgrounds, buttons, and even some small games with static 2d graphics. the book is full of step-by-step lessons and practical examples. this book helps you develop rich graphical applications and some simple games.
learning android canvas will help you understand everything that is required to develop an android application that involves creating 2d graphics from scratch to a fully functional complete application. you will start with zero knowledge of using graphics within android applications and will then go step by step to learn about different objects and techniques. in the end you will be able to develop a complete application fully loaded with graphics and functions.
the book will give you a detailed practical explanation of nine-patch images and its importance in designing layouts and backgrounds. we will also take a detailed look at user interactions such as touch, capturing the action, and responding to them accordingly. finally we will have a working, fully functional graphic application that uses all the knowledge that we have acquired previously.
approach
this book is a fast-paced, practical, step-by-step tutorial guide full of examples that are easy to follow and implement.
who this book is for
this book is a great resource for developers who have basic android development knowledge and want to work on graphics-rich applications and games but are totally new to working with graphics and android canvas.
about the author
mir nauman tahir completed his ms in information technology from khyber pakhtoonkhwa, pakistan. he specialized in web technologies. he is also a microsoft certified technology specialist. he started his professional programming career in 2004 and has worked on developing different systems, such as library management system, procurement system, a lot of web applications, and dynamic websites with content management systems. mir worked on the android source code for almost 1.5 years in a research group as a developer and published a research paper on the basis of his research with that team. mir has also worked on other open source technologies such as openerp, postgre-sql, and different flavors of linux. mir currently has more than eight years of industry experience consisting majorly of in-house development for some of pakistan's most well reputed organizations and universities. he started his career as a software engineer for comsats institute of information technology, abbottabad, pakistan and has since worked with security engineering research group, peshawar, pakistan; un-habitat, pakistan; save the children, pakistan; and currently working as an information management officer in a well-reputed humanitarian organization in pakistan. this is mir's first book, but he writes most of his technical articles on his personal blog, http://mirnauman.wordpress.com. the articles are mostly about android and microsoft .net technologies. mir loves sketching and playing computer games.
preface
chapter 1: getting started with android canvas
android canvas
our first android canvas application
application name
project name
package name
least possible version of sdk
target sdk
theme
mining our first application
the configuration file
the layout file
the code file
summary
chapter 2: drawing threads
the need for drawing threads
the issue with multithreading in android
the thread class
handler objects that run on the ui thread
asynctask
summary
chapter 3: drawing and drawables in android canvas
drawing on a canvas
drawing on a view
drawing on a surfaceview
drawables
drawables from a resource image
drawables from resource xml
shape drawables
summary
chapter 4: ninepatch images
creating a ninepatch image
using a ninepatch image
summary
chapter 5: touch events and drawing on canvas
some background knowledge
application development
our custom-view class
defining class properties and objects
methods in our custom-view class
the constructor
the drawing method
the measurement method
the touch event
our main activity class and final output
summary
chapter 6: putting it all together
the story board
the project and application development
the user interface
screen orientation
the paint brush
designing the control panel
setting up the layout
enabling the touch and painting using touch
enabling the color selection
spicing up our application with more functions
saving the painting
creating a new drawing
enabling eraser in our application
summary
index.
Author : Mir nauman tahir
Publication : Packt publication
Isbn : 9789351104155
Store book number : 105
NRS 360.00
|
|
|
|
|
|
|
|
|
|